package com.qining618.cms.cms.controller.admin.request;

import lombok.Data;

import javax.validation.constraints.Future;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;

/**
 * @author flt
 * @date 2019-09-18
 */
@Data
public class AdminContentSetTopLevelRequest implements Serializable {

    private static final long serialVersionUID = 1020315582984845171L;

    /**
     * 置顶级别
     */
    @Min(value = 1, message = "置顶级别不能小于1")
    @NotNull(message = "置顶级别不能为空")
    private Integer level;

    /**
     * 置顶过期时间
     */
    @NotNull(message = "置顶过期时间不能为空")
    private Date dueTime;
}
